class Answer < ActiveRecord::Base

	belongs_to	:user
	belongs_to	:prayer
	
	validates_presence_of			:prayer_id, :user_id, :body

	def owned_by?(signed_user)
		!signed_user.blank? && self.user == signed_user
	end

	def self.per_page
		3
	end

end
